<template>
	<view class="zone">
		<Header title="专属客服" color="#fff"></Header>
		<view class="main">
			<view class="flex">	
				<view class="left">
					<image src="http://img.cpgm.cc/panda/static/invite/v1.png" mode="widthFix" />
					<view class="btn button" @click="see">查看客服联系方式</view>
				</view>
				<image class="header" src="http://img.cpgm.cc/panda/static/invite/vheader.png" mode="widthFix" />
			</view>
			<view class="list">
				<image src="http://img.cpgm.cc/panda/static/invite/v3.png" mode="widthFix" />
			</view>
		</view>

		<u-mask :show="show" @click="show = false">
			<view class="warp">
				<view class="maskbox">
					<view class="title">查看客服联系方式</view>
					<p>享受美女客服专属服务</p>
					<image src="../../static/public/vipccode.jpg" mode="widthFix" />
					<p>扫一扫添加美女客服~</p>
				</view>
			</view>
		</u-mask>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				show:false,
				userinfo:'',
			};
		},
		onLoad(){
			this.getUserInfo();
		},
		methods: {
			// 获取个人信息
			getUserInfo(){
				this.$getUserInfo.getUserInfo((res)=>{
					this.userinfo = res.data
				})
			},
			see(){
				if( Number(this.userinfo.charge_money) >= 1000) {
					this.show = true
				}else {
					this.$u.toast('累计充值1000,即可解锁客服联系方式')
				}
			},
		},
	}
</script>

<style lang="less">
.zone {
	background: linear-gradient(180deg,#005ffe,#2bd2f7 34%,#58f6d9 59%,#28e2f5 70%,#8b66fc);
	min-height: 100vh;
}

.main {
	padding: 10px;
}
.flex {
	display: flex;
	align-items: center;
	justify-content: space-between;

	.left {
		flex: 1;
		display: flex;
		flex-direction: column;

		image {
			width: 80%;
		}

		.btn {
			width: 135px;
			height: 39px;
			background: linear-gradient(270deg, #FF456B 0%, #FE5C4F 100%);
			border-radius: 6px;
			color: #fff;
			font-size: 14px;
			line-height: 39px;
			margin-top: 10px;
		}
	}

	.header {
		width: 90px;
	}
}

.list {
	margin-top: 10px;

	image {
		width: 100%;
	}
}

.maskbox {
	background: #fff;
	border-radius: 15px;
	padding: 15px;
	display: flex;
	flex-direction: column;
	align-items: center;

	p {
		text-align: center;
		color: #131314;
		font-size: 14px;
		margin: 15px 0;
	}

	image {
		width: 50%;
	}
}

.title {
	text-align: center;
	font-size: 20px;
	font-weight: 600;
	color: #000;
}

</style>
